import '../base/BaseBean.dart';

//首页 分类
class RecommendCategory implements  BaseJsonBean{
  String? name;
  int?  id;
  int?  parentId;
  int?  level;
  int?  productCount;
  String?  productUnit;
  int?  navStatus;
  int?  showStatus;
  int?  sort;
  String?  icon;
  String?  keywords;

  RecommendCategory(
      {this.name,
        this.id,
        this.parentId,
        this.level,
        this.productCount,
        this.productUnit,
        this.navStatus,
        this.showStatus,
        this.sort,
        this.icon,
        this.keywords});

  RecommendCategory.fromJson(Map<String, dynamic> json) {
    name = json['name'];
    id = json['id'];
    parentId = json['parentId'];
    level = json['level'];
    productCount = json['productCount'];
    productUnit = json['productUnit'];
    navStatus = json['navStatus'];
    showStatus = json['showStatus'];
    sort = json['sort'];
    icon = json['icon'];
    keywords = json['keywords'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['name'] = this.name;
    data['id'] = this.id;
    data['parentId'] = this.parentId;
    data['level'] = this.level;
    data['productCount'] = this.productCount;
    data['productUnit'] = this.productUnit;
    data['navStatus'] = this.navStatus;
    data['showStatus'] = this.showStatus;
    data['sort'] = this.sort;
    data['icon'] = this.icon;
    data['keywords'] = this.keywords;
    return data;
  }
}
